package com.yaoli.SheJiMoShi.Decorator;

/**
 * Created by YaoLi on 2017/9/29.
 */
public class ManDecoratorRun extends ManDecorator {
    public ManDecoratorRun(Person person) {
        super(person);
    }

    @Override
    public void introduce(String name, Integer age) {
        super.introduce(name, age);
        run();
    }

    public void run(){
        System.out.println("功能增强之：我可以跑");
    }
}
